import { createRequest } from '/@/api/service';
const module = 'ib/visitor/v1/VisitorRecordManualApi/open';

/**
 * @function 新增来访手工登记信息
 * @param data
 * @param header
 * @returns {Promise}
 */
function INSERT_VISITOR_RECORD_MANUAL(
  data: VisitorRecordManualApi.InsertVisitorRecordManualReq,
  header: object = {},
): Promise<VisitorRecordManualApi.InsertVisitorRecordManualResp> {
  return createRequest(
    `${process.env.APP_API_URL}${module}/insertVisitorRecordManual`,
    data,
    header,
    'POST',
  );
}

export { INSERT_VISITOR_RECORD_MANUAL };
